/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package forum.client.ui;

import forum.client.controllerlayer.ControllerHandler;
import forum.client.controllerlayer.ControllerHandlerFactory;
import javax.swing.SwingWorker;

/**
 *
 * @author Alon Furman
 */
public class ForumViewWorker extends SwingWorker<String[], Void>{

    private ControllerHandler m_pipe;

    public ForumViewWorker(){
        m_pipe = ControllerHandlerFactory.getPipe();
    }

    @Override
    protected String[] doInBackground() throws Exception {
        return m_pipe.getForumView();
    }
}
